package com.vcc.channel.base.channel;

import cn.hutool.core.util.ClassUtil;
import cn.hutool.json.JSONUtil;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class BaseResult implements Serializable {

    public boolean hasSuccess() {
        return true;
    }

    public boolean hasError() {
        return !hasSuccess();
    }

    public <T> T dataToEntity(Class<T> tClass) {
        return null;
    }

    public <T> List<T> dataToListEntity(Class<T> tClass) {
        return null;
    }

}
